package com.project.controller;

import com.project.bean.SubContentBean;
import com.project.service.ISubContentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author lyl
 * description:跟帖相关controller
 */
@RestController
@RequestMapping("subContent")
public class SubContentController {
    @Autowired
    private ISubContentService iSubContentService;

    @RequestMapping("addSC")
    public String addMC(SubContentBean subContentBean, int userId, int mainContentId) {
        iSubContentService.addSC(subContentBean, userId, mainContentId);
        return "ok";
    }


}
